﻿<%@ Page Title="" Language="C#" MasterPageFile="site.master" AutoEventWireup="true"
    CodeBehind="cache.aspx.cs" Inherits="Icst.Leaflike.Web.admin.cache" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="padding:50px">
        <asp:UpdateProgress runat="server" AssociatedUpdatePanelID="updatePanel">
            <ProgressTemplate>
                <label style="background-color: Yellow">
                    Processing...</label>
            </ProgressTemplate>
        </asp:UpdateProgress>
        <asp:UpdatePanel ID="updatePanel" runat="server">
            <ContentTemplate>
                <asp:GridView ID="grid" runat="server" CssClass="dataTable" CellPadding="10" CellSpacing="10" AllowPaging="false" AutoGenerateColumns="false">
                    <AlternatingRowStyle CssClass="dataTableAltRow" />
                    <Columns>
                        <asp:BoundField DataField="Name" HeaderText="名称" />
                        <asp:TemplateField HeaderText="执行刷新">
                            <ItemTemplate>
                                <asp:Button runat="server" CommandArgument='<%#Eval("Name") %>' Text="刷新" OnClick="refresh_Click" OnClientClick="return confirm('确定吗？刷新动作可能会持续较长时间，且会降低系统的效率');" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                
                <div>
                <asp:Button runat="server" Text="全部刷新" OnClick="refreshAll_Click" />
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
